//
//  FieldCardZone.cpp
//  Test
//
//  Created by Pedram Ardeshirzadeh on 20-07-12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#include "FieldCardZone.h"

FieldCardZone::FieldCardZone() {
    cout << "FieldCardZone created" << endl;
}

void FieldCardZone::addCard(Card *c) {
    assert(c != NULL);
    
    if (fieldCard == NULL)
        fieldCard = (SpellTrapCard*)c;
}

void FieldCardZone::removeCard(Card *c) {
    assert(c != NULL);
    
    if (*c == *fieldCard)
        fieldCard = NULL;
}